<template>
    <div>
        <div style="float:left;">签到记录</div>
        <div style="display:inline-block; margin-left: 20px;">
            <el-button
                @click="change_cord"
                >打卡签到
            </el-button>
        </div>
        <div class="rcontent">
            <el-table
                :data="tables"
                style="width: 100%;text-align: center;">
                <el-table-column
                    prop="id"
                    label="编号"
                    width="60"
                    align="center"
                    fixed="left">
                    {{1}}
                </el-table-column>
                <el-table-column
                    prop="name"
                    label="名字"
                    width="80"
                    align="center">
                    {{"admin"}}
                </el-table-column>
                <el-table-column
                    prop="province"
                    label="国家"
                    width="100"
                    align="center">
                    {{this.obj.country}}
                </el-table-column>
                <el-table-column
                    prop="province"
                    label="省"
                    width="100"
                    align="center">
                    {{this.obj.pca[0]}}
                </el-table-column>
                <el-table-column
                    prop="city"
                    label="市"
                    width="80"
                    align="center">
                    {{this.obj.pca[1]}}
                </el-table-column>
                <el-table-column
                    prop="area"
                    label="区"
                    width="80"
                    align="center">
                    {{this.obj.pca[2]}}
                </el-table-column>
                <el-table-column
                    prop="select0"
                    label="当前位置"
                    width="100"
                    align="center">
                {{this.obj.select0}}
                </el-table-column>
                <el-table-column
                    prop="radio"
                    label="当前状况"
                    width="180"
                    align="center">
                    {{this.obj.radio}}
                </el-table-column>
                 
                <el-table-column
                    prop="radio2"
                    label="是否接触"
                    width="80"
                    align="center">
                    {{this.obj.radio2}}
                </el-table-column>
                <el-table-column
                    prop="radio3"
                    label="是否路过"
                    width="80"
                    align="center">
                    {{this.obj.radio3}}
                </el-table-column>
                <el-table-column
                    prop="radio4"
                    label="是否招待"
                    width="80"
                    align="center">
                    {{this.obj.radio4}}
                </el-table-column>
                <el-table-column
                    prop="select1"
                    label="学习状态"
                    width="80"
                    align="center">
                    {{this.obj.select1}}
                </el-table-column>
                <el-table-column
                    prop="select2"
                    label="生活状态"
                    width="80"
                    align="center">
                    {{this.obj.select2}}
                </el-table-column>
                <el-table-column
                    prop="select3"
                    label="交际状态"
                    width="80"
                    align="center">
                    {{this.obj.select3}}
                </el-table-column>
                <el-table-column
                    prop="select4"
                    label="情感状态"
                    width="80"
                    align="center">
                    {{this.obj.select4}}
                </el-table-column>
                <el-table-column
                    prop="select5"
                    label="身体状态"
                    width="80"
                    align="center">
                    {{this.obj.select5}}
                </el-table-column>
               <el-table-column
                    fixed="right"
                    prop="select5"
                    label="提交时间"
                    width="150"
                    align="center">
                    {{new Date().getTime() | dateFMT}}
                </el-table-column>
            </el-table>

           <!-- {{this.obj}} -->
        </div>
    </div>
</template>

<script>
import moment from "moment";
export default {
    data() {
        return {
            tables: [
                this.obj2
            ],
            obj: this.$route.query,
            arr: []
        }
    },
    filters: {
        dateFMT(str) {
            return moment(str).format('YYYY-MM-DD HH:mm:ss');
        }
    },
    created() {
        this.test()
    },
    methods:{
        test() {
            var arr = Object.values(this.obj); //对象转化为数组
            // console.log(arr,'=========');
            // console.log(this.obj,'+++++++++');
            // console.log(arr,'=========');
        },
        change_cord() {
            this.$router.push({
                path: "/wuqingyu/index"
            })
        },
    }
}
</script>